/**
 * 全局通用样式
 * 包含基础重置和全局样式定义
 */

@use './theme/base.scss' as *;

/**
 * 重置浏览器默认样式
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: $font-family;
}

/**
 * 全局布局设置
 */
html,
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  font-size: $font-size-body;
  color: $text-primary;
  background-color: $bg-base;
}

:root {
  overflow: hidden;
}

/**
 * 通用布局类
 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/**
 * 间距类
 */
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/**
 * 自定义滚动条样式
 */
.custom-scrollbar {
  &::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  
  &::-webkit-scrollbar-thumb {
    background: rgba($text-secondary, 0.3);
    border-radius: $radius-round;
  }
  
  &::-webkit-scrollbar-track {
    background: transparent;
  }
}
